package edu.gdut.thesissys.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Admin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "admin", catalog = "gdutmis")
public class Admin extends BaseVo implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6971822749435234899L;
	// Fields

	private String adminId;
	private String name;
	private String sex;
	private Integer major;
	private String email;
	private String powerRight;
	private String password;

	// Constructors

	/** default constructor */
	public Admin() {
	}

	/** full constructor */
	public Admin(String adminId, String name, String sex, Integer major,
			String email, String powerRight, String password) {
		this.adminId = adminId;
		this.name = name;
		this.sex = sex;
		this.major = major;
		this.email = email;
		this.powerRight = powerRight;
		this.password = password;
	}

	// Property accessors
	@Id
	@Column(name = "admin_Id", unique = true, nullable = false, length = 10)
	public String getAdminId() {
		return this.adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}

	@Column(name = "name", nullable = false, length = 10)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sex", nullable = false, length = 2)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "major", nullable = false)
	public Integer getMajor() {
		return this.major;
	}

	public void setMajor(Integer major) {
		this.major = major;
	}

	@Column(name = "email", nullable = false, length = 30)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "power_right", nullable = false, length = 1)
	public String getPowerRight() {
		return this.powerRight;
	}

	public void setPowerRight(String powerRight) {
		this.powerRight = powerRight;
	}

	@Column(name = "password", nullable = false, length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}